#ifndef PLAYERICON_H
#define PLAYERICON_H
#include <QGraphicsItem>
#include "player.h"
#include <QRect>
#include <QPainter>

class PlayerIcon : public QGraphicsItem
{    
public:
    PlayerIcon(Player* p);
    void paint(QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget);
    QRectF  boundingRect() const;
    Player* getPlayer();

private:
    Player* myPlayer;
};

#endif // PLAYERICON_H
